package cn.wetcland.es.mapper;

import cn.wetcland.es.domain.EsTask;
import cn.wetcland.es.vo.TaskAndStatusListItemVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Wetcland
* @description 针对表【es_task】的数据库操作Mapper
* @createDate 2023-04-29 17:04:49
* @Entity cn.wetcland.es.domain.EsTask
*/
@Mapper
public interface EsTaskMapper extends BaseMapper<EsTask> {

    int selectNodeItemCount(@Param("taskId") Long taskId);

    List<TaskAndStatusListItemVO> selectStudentTaskAndStatusList(@Param("studentId") Long esStudentId);

    List<TaskAndStatusListItemVO> selectTeacherTaskAndStatusList(@Param("teacherId") Long esTeacherId);
}




